package com.eesujie.xcs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eesujie.xcs.entity.po.NoteCommentPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 笔记评论表 Mapper 接口
 * </p>
 *
 * @author eesujie
 * @since 2023-04-19
 */
@Mapper
public interface NoteCommentMapper extends BaseMapper<NoteCommentPO> {
    @Select("SELECT * FROM XCS.noteComment WHERE noteId = #{ noteId }")
    List<NoteCommentPO> getCommentsByNoteId(long noteId);
}
